
#define ERROR_MISC			10000
#define NETWORKOFFLINE                  ERROR_MISC+1
#define TRYTERMINATESOCKETLOCKFAIL		ERROR_MISC+2

#define ERROR_PROTOCOL		20000

#define PROTOCOLRETOBJNIL	ERROR_PROTOCOL+1


#define  ERROR_SOCKETSTREAM  30000

#define  WRITESTREAMERROR			ERROR_SOCKETSTREAM+1
#define  READSTREAMERROR			ERROR_SOCKETSTREAM+2
#define  WRITESTREAMTIMEOUT			ERROR_SOCKETSTREAM+3
#define  READSTREAMTIMEOUT			ERROR_SOCKETSTREAM+4
#define  TERMINATEREADWRITE			ERROR_SOCKETSTREAM+5
#define  SOCKETSTREAMOPENERROR		ERROR_SOCKETSTREAM+6
#define  SOCKETCHANNELPOOLFULL		ERROR_SOCKETSTREAM+7
#define  SOCKETCHANNELPOOLSUSPEND	ERROR_SOCKETSTREAM+8
#define  SOCKETCHANNELPOOLNOMATCH	ERROR_SOCKETSTREAM+9
#define  READSTREAMEND				ERROR_SOCKETSTREAM+10
#define  WRITESTREAMEND				ERROR_SOCKETSTREAM+11
#define  SOCKETCONNECTTIMEOUT		ERROR_SOCKETSTREAM+12
#define  PINGNETWORK                ERROR_SOCKETSTREAM+13

#define  TERMINATEREQUEST           TERMINATEREADWRITE

#define  ERROR_FILE		40000

#define	 FILEDIRNOTEXIST			ERROR_FILE+1
#define	 DIREMPTY					ERROR_FILE+2

#define	 ERROR_USERMANAGER		50000
#define	 LOGINGETUSERINFOERROR				ERROR_USERMANAGER+1
#define  LOGINGETENTERPRISESINFOERROR		ERROR_USERMANAGER+2
#define	 PSWERROR							ERROR_USERMANAGER+3
#define	 LOGINLOCALTIMEERROR                ERROR_USERMANAGER+4

#define  ERROR_DATASOURCE		60000
#define	 DATASOURCENOTEXIST					ERROR_DATASOURCE+1
#define  TABLENOTEXIST						ERROR_DATASOURCE+2
#define  INSERTKEYEXIST						ERROR_DATASOURCE+3
#define  INSERTKEYNULL						ERROR_DATASOURCE+4
#define  UPDATEKEYNULL						ERROR_DATASOURCE+5
#define  DELETEKEYNULL						ERROR_DATASOURCE+6
#define  NOROWCHANGE						ERROR_DATASOURCE+7
#define  DBPASSWORDERROR					ERROR_DATASOURCE+8
#define  KEYNULL							ERROR_DATASOURCE+9
#define  UPLOADTABLEGRIDDATAISNULL          ERROR_DATASOURCE+10
#define  NOOPERATORDATA                     ERROR_DATASOURCE+11
#define	 DATASOURCENODATA					ERROR_DATASOURCE+12
#define  CREATETABLEKEYNULL                 ERROR_DATASOURCE+13

#define ERROR_DATASECURITY		70000
#define CERENDTIMEOVER						ERROR_DATASECURITY+1
#define CERCACHETIMEOVER					ERROR_DATASECURITY+2
#define UPDATECEREMPTYOBJ					ERROR_DATASECURITY+3
#define GETCEREMPTYOBJ						ERROR_DATASECURITY+4
#define ISSUEDATENOTSAME					ERROR_DATASECURITY+5	

#define ENTERPRISEDATAUPDATE		80000
#define NODATASOURCEUPDATE					ENTERPRISEDATAUPDATE+1

